package com.algernoon.rpc.springrpc.rmi.httpinvoker;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.remoting.httpinvoker.HttpInvokerProxyFactoryBean;

@Configuration
public class HttpInvokerRmiClientConfig {

	@Bean
	public HttpInvokerProxyFactoryBean initHttpInvokerProxyFactoryBean() {
		HttpInvokerProxyFactoryBean factoryBean = new HttpInvokerProxyFactoryBean();
		factoryBean.setServiceUrl("http://localhost:8080/HttpInvokerService");
		factoryBean.setServiceInterface(IHttpInvokerUserService.class);
		return factoryBean;
	}
	
}
